package net.zjitc.service.Impl;

import net.zjitc.dao.Impl.UserDaoImpl;
import net.zjitc.dao.UserDao;
import net.zjitc.domain.User;
import net.zjitc.service.UserService;

/**
 * Created by guo on 2017/12/3.
 */
public class UserImpl implements UserService {
    UserDao dao=new UserDaoImpl();
    public User findAlluser(String username, String password) {
        return dao.findAlluser(username,password);
    }

    public User findByCode(String code) {
        return dao.findByCode(code);
    }

    public int update(User user) {
        return dao.update(user);
    }
}
